package cn.wx.scholar.neo4j.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import cn.wx.common.persistence.base.BaseController;
import cn.wx.common.persistence.web.ResponseData;
import cn.wx.scholar.neo4j.entity.qo.Neo4jFieldQ;
import cn.wx.scholar.neo4j.service.Neo4jFieldService;

/**
 *   @description : 领域  控制器
 *   ---------------------------------
 *   @author  
 *   @since 2018-08-09
 */
@RestController
@RequestMapping("/sholar/neo4j/field")
public class Neo4jFieldController extends BaseController {
	
	@Autowired
    private Neo4jFieldService neo4jFieldService;
	
	/**
	 * 根据专家的Id获取该专家所有的新闻数据
	 * @param id
	 * @return
	 */
    @RequestMapping(value = "/getFields", method = RequestMethod.POST)
	public ResponseData getFields(Neo4jFieldQ neo4jFieldQ){
		return success(neo4jFieldService.getFields(neo4jFieldQ));
    }
}
